]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Fix regression that caused no date to be displayed
authorColin Walters <walters@verbum.org>
Tue, 26 Jun 2012 18:00:35 +0000 (14:00 -0400)
committerColin Walters <walters@verbum.org>
Tue, 26 Jun 2012 18:00:35 +0000 (14:00 -0400)
Commit ef0aa65774af02ef86d6b131b336c3914c6daf97 broke the date
display; bring it back.

js/ui/dateMenu.js

index 878cd357052a82e518f4206587138c66a3f461bf..5e5b3afe222353170a8b463be63aaf2d65accd9a 100644 (file)
@@ -155,6 +155,12 @@ const DateMenuButton = new Lang.Class({
 
     _updateClockAndDate: function() {
         this._clockDisplay.set_text(this._clock.clock);
+        /* Translators: This is the date format to use when the calendar popup is
+         * shown - it is shown just below the time in the shell (e.g. "Tue 9:29 AM").
+         */
+        let dateFormat = _("%A %B %e, %Y");
+        let displayDate = new Date();
+        this._date.set_text(displayDate.toLocaleFormat(dateFormat));
     },
 
     _onOpenCalendarActivate: function() {